package com.xiaode.controller.app.tip;

import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.jfinal.ext.cors.EnableCORS;
import com.jfinal.kit.Ret;
import com.xiaode.util.apidoc.annotation.Api;
import com.xiaode.util.apidoc.annotation.ApiOper;

/**
 * 登录服务
 */
@Path("/tip")
@Api("提示消息相关服务")
@EnableCORS
public class TipController extends Controller {

    @Inject
    private TipService service;
    
	
	/**
	 * 初始获取 审核提示,评价提示 的红点
	 * (获取具体id,时间)
	 */
	@ApiOper("获取留言提示,审核提示,评价提示")
	public void msgTips() throws Exception{
		Integer accountId = getAttr("accountId");
		Integer userId = getAttr("userId");
        Integer userType = getAttr("userType");
    	Ret ret = service.msgTips(accountId, userId, userType);
    	renderJson(ret);
    }
	



}